import os

from dotenv import load_dotenv
from sqlalchemy.orm import Session
from sqlalchemy import select
from ..models.ppts_model import Ppts
from ..utils.uploads_oss import main as upload_on_oss
from fastapi import HTTPException

def get_ppt_quentity(db: Session) -> int:
    """
    获取ppt数量
    """
    return db.query(Ppts).count()
# if __name__ == '__main__':
#     from database.db import SessionLocal
#     db = SessionLocal()
#     update_oss_urls(db)